package com.tulele.vtool.service;

import com.tulele.vtool.model.*;
import me.chanjar.weixin.common.error.WxErrorException;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserGroupGzhService {

    UserGroupGzh getUserGroupGzh(String gzhCode);

    List<UserGroupGzh> getUserGroupGzhList(String groupCode);

    void addUserGroupOpenId(UserGroupOpenId userGroupOpenId);

    UserGroupOpenId getUserGroupUserId(String gzhCode,String openId);

    List<UserGroupOpenId> getUserGroupOpenIds(Integer userId);

    UserGroupOpenId getUserOpenId( String gzhCode,  Integer userId);

    Integer getUserGroupUserId(String springProfilesActive, String openId, String appId, String unionId, String groupCode) throws WxErrorException;

    Integer updateLastActiveTimeAndPhoneModels(String gzhCode,String unionId);

}
